<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>代购登陆界面</title>

<link rel="stylesheet" href="../backPage/css/font-awesome.min.css"/>
<link rel="stylesheet" href="../backPage/css/loginMy.css"/>
<script src="../backPage/js/jquery-1.9.1.min.js"></script>
<script src="../backPage/js/f.js"></script>

	<style type="text/css">
		input[type=button]{
			width: 49%;
			height: 2em;
			font-size: 2em;
			background-color: #4c7c97;
			font-weight: bolder;
			font-family: "微软雅黑";
			opacity: 1;
			margin-left: 24.4%;
			padding-left: -50px;
		}
	</style>

<style>
html,body{width:100%;}
</style>

</head>
<body>

<div class="main">

	<div class="center">
		<form id="form-admin-login" method="post" >
			<i class="fa fa-user Cone">  | </i>
			<input type="text" name="username" id="user" placeholder="用户名"onblur="checkUser()"/>
			<span id="user_pass"></span>
			<br/>
			<i class="fa fa-key Cone">  | </i>
			<input type="password" name="password" id="pwd" placeholder="密码"onblur="checkUser1()"/>
			<span id="pwd_pass"></span>
			<br/>
			<input type="button" value="登录" id="btn-admin-login" name="submit">
			<br/>
		</form>
	</div>
	
</div>


<script type="text/javascript" src="../backPage/js/loginMy.js"></script>

</body>

<script type="text/javascript">
	$("#btn-admin-login").click(function () {
		$.ajax({
			"url":"/admin/admin_login.do",
			"data":$("#form-admin-login").serialize(),
			"type":"post",
			"dataType":"json",
			"success":function(json){
				console.log(json);
				if (json.code == 200) {
					location.href = "/backPage/UserManagement.html";
				}else{
					alert(json.message);
				}
			}
		});
	});
</script>

</html>